array(1) { [0]=> array(3) { ["errno"]=> int(1064) ["sqlstate"]=> string(5) "42000" ["error"]=> string(198) "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.$categories_for_search[0].end_slash.'' AND langID=1' at line 2" } } string(132) "SELECT `old_url`, `query`, catnum FROM `m_seo_urls` WHERE `seo_url` LIKE ''.$categories_for_search[0].end_slash.'' AND langID=1"